package cn.tomoki.demo01.mapper;

import cn.tomoki.demo01.entity.Appoint;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

@Mapper
@Repository
public interface AppointMapper {
    //查询所有预约记录（概况暂未实现）
    Collection<Appoint> getAppointAll();
    //按流水单查询单个预约记录详情
    Appoint getAppointByMark(int mark);
    //增加预约记录
    int insertAppoint(Appoint appoint);
    //确认收货
    int updateAppointYes(Map<String, Object> map);
    //取消预约
    int updateAppointNo(Map<String, Object> map);
}
